/**
 *
 * @author DnD Binary Source
 */
package binarysource;

import org.jdesktop.application.Action;

public class AboutBox extends javax.swing.JDialog {

    public AboutBox(java.awt.Frame parent) {
        super(parent);
        initComponents();
        getRootPane().setDefaultButton(btnClose);
    }

    @Action
    public void closeAboutBox() {
        dispose();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        javax.swing.JLabel logo = new javax.swing.JLabel();
        javax.swing.JLabel labTitle = new javax.swing.JLabel();
        javax.swing.JLabel labDescription = new javax.swing.JLabel();
        javax.swing.JLabel labVersion = new javax.swing.JLabel();
        javax.swing.JLabel labVersionContent = new javax.swing.JLabel();
        javax.swing.JLabel labDeveloper = new javax.swing.JLabel();
        javax.swing.JLabel labDeveloperContent = new javax.swing.JLabel();
        javax.swing.JLabel labHomepage = new javax.swing.JLabel();
        javax.swing.JLabel labHomepageContent = new javax.swing.JLabel();
        btnClose = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance().getContext().getResourceMap(AboutBox.class);
        setTitle(resourceMap.getString("title")); // NOI18N
        setBackground(resourceMap.getColor("aboutBox.background")); // NOI18N
        setForeground(resourceMap.getColor("aboutBox.foreground")); // NOI18N
        setIconImage(null);
        setModal(true);
        setName("aboutBox"); // NOI18N
        setResizable(false);

        logo.setIcon(resourceMap.getIcon("logo.icon")); // NOI18N
        logo.setName("logo"); // NOI18N

        labTitle.setFont(labTitle.getFont().deriveFont(labTitle.getFont().getStyle() | java.awt.Font.BOLD, labTitle.getFont().getSize()+4));
        labTitle.setText(resourceMap.getString("labTitle.text")); // NOI18N
        labTitle.setName("labTitle"); // NOI18N

        labDescription.setText(resourceMap.getString("labDescription.text")); // NOI18N
        labDescription.setName("labDescription"); // NOI18N

        labVersion.setFont(labVersion.getFont().deriveFont(labVersion.getFont().getStyle() | java.awt.Font.BOLD));
        labVersion.setText(resourceMap.getString("labVersion.text")); // NOI18N
        labVersion.setName("labVersion"); // NOI18N

        labVersionContent.setText(resourceMap.getString("labVersionContent.text")); // NOI18N
        labVersionContent.setName("labVersionContent"); // NOI18N

        labDeveloper.setFont(labDeveloper.getFont().deriveFont(labDeveloper.getFont().getStyle() | java.awt.Font.BOLD));
        labDeveloper.setText(resourceMap.getString("labDeveloper.text")); // NOI18N
        labDeveloper.setName("labDeveloper"); // NOI18N

        labDeveloperContent.setText(resourceMap.getString("labDeveloperContent.text")); // NOI18N
        labDeveloperContent.setName("labDeveloperContent"); // NOI18N

        labHomepage.setFont(labHomepage.getFont().deriveFont(labHomepage.getFont().getStyle() | java.awt.Font.BOLD));
        labHomepage.setText(resourceMap.getString("labHomepage.text")); // NOI18N
        labHomepage.setName("labHomepage"); // NOI18N

        labHomepageContent.setText(resourceMap.getString("labHomepageContent.text")); // NOI18N
        labHomepageContent.setName("labHomepageContent"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance().getContext().getActionMap(AboutBox.class, this);
        btnClose.setAction(actionMap.get("quit")); // NOI18N
        btnClose.setText(resourceMap.getString("btnClose.text")); // NOI18N
        btnClose.setToolTipText(resourceMap.getString("btnClose.toolTipText")); // NOI18N
        btnClose.setName("btnClose"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(logo)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labDescription, javax.swing.GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(labVersion)
                            .addComponent(labDeveloper)
                            .addComponent(labHomepage))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(labVersionContent)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(labHomepageContent)
                                    .addComponent(labDeveloperContent))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 45, Short.MAX_VALUE)
                                .addComponent(btnClose))))
                    .addComponent(labTitle))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(logo, javax.swing.GroupLayout.PREFERRED_SIZE, 178, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labTitle)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(labDescription, javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labVersion)
                            .addComponent(labVersionContent))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labDeveloper)
                            .addComponent(labDeveloperContent))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labHomepage)
                            .addComponent(labHomepageContent)))
                    .addComponent(btnClose))
                .addContainerGap())
        );

        btnClose.getAccessibleContext().setAccessibleName(resourceMap.getString("btnClose.AccessibleContext.accessibleName")); // NOI18N
        btnClose.getAccessibleContext().setAccessibleDescription(resourceMap.getString("btnClose.AccessibleContext.accessibleDescription")); // NOI18N

        getAccessibleContext().setAccessibleDescription(resourceMap.getString("aboutBox.AccessibleContext.accessibleDescription")); // NOI18N

        pack();
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnClose;
    // End of variables declaration//GEN-END:variables

}
